#include "person.h"

QString Person::toString() const
{
    return QString("Name: %1 Sex: %2").arg(m_Name).arg(sexString());
}

QString Person::sexString() const
{
    switch(m_Sex)
    {
    case MALE:
        return "Male";
    case FEMALE:
        return "Female";
    }
}
